﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


public class MoveComponent : ECSMomentCompoentBase
{
    /// <summary>
    /// 坐标
    /// </summary>
    public SyncVector3 pos=new SyncVector3();
    /// <summary>
    /// 移动朝向
    /// </summary>
    public SyncVector3 dir=new SyncVector3();
    /// <summary>
    /// 速度
    /// </summary>
    public int m_velocity;

    public override ECSMomentCompoentBase DeepCopy()
    {
        MoveComponent mc=new MoveComponent();
        mc.ID = ID;
        mc.Frame = Frame;
        mc.Entity = Entity;

        mc.pos = pos.DeepCopy();
        mc.dir = dir.DeepCopy();

        mc.m_velocity = m_velocity;

        return mc;
    }
}

